home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / pango-1.0 / pango / pango-item.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-04-25  |  1.7 KB  |  64 lines

  1. /* Pango
  2.  * pango-item.h: Structure for storing run information
  3.  *
  4.  * Copyright (C) 2000 Red Hat Software
  5.  *
  6.  * This library is free software; you can redistribute it and/or
  7.  * modify it under the terms of the GNU Library General Public
  8.  * License as published by the Free Software Foundation; either
  9.  * version 2 of the License, or (at your option) any later version.
  10.  *
  11.  * This library is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.     See the GNU
  14.  * Library General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU Library General Public
  17.  * License along with this library; if not, write to the
  18.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  19.  * Boston, MA 02111-1307, USA.
  20.  */
  21.  
  22. #ifndef __PANGO_ITEM_H__
  23. #define __PANGO_ITEM_H__
  24.  
  25. #include <pango/pango-types.h>
  26.  
  27. G_BEGIN_DECLS
  28.  
  29. typedef struct _PangoAnalysis PangoAnalysis;
  30. typedef struct _PangoItem PangoItem;
  31.  
  32. struct _PangoAnalysis
  33. {
  34.   PangoEngineShape *shape_engine;
  35.   PangoEngineLang  *lang_engine;
  36.   PangoFont *font;
  37.   guint8 level;
  38.   PangoLanguage *language;
  39.   GSList *extra_attrs;
  40. };
  41.  
  42. struct _PangoItem
  43. {
  44.   gint offset;
  45.   gint length;
  46.   gint num_chars;
  47.   PangoAnalysis analysis;
  48. };
  49.  
  50. #define PANGO_TYPE_ITEM (pango_item_get_type ())
  51.  
  52. GType pango_item_get_type (void) G_GNUC_CONST;
  53.  
  54. PangoItem *pango_item_new   (void);
  55. PangoItem *pango_item_copy  (PangoItem  *item);
  56. void       pango_item_free  (PangoItem  *item);
  57. PangoItem *pango_item_split (PangoItem  *orig,
  58.                              int         split_index,
  59.                              int         split_offset);
  60.  
  61. G_END_DECLS
  62.  
  63. #endif /* __PANGO_ITEM_H__ */
  64.